package cn.like.backEnd.biz.service.impl;

import cn.like.backEnd.biz.mapper.AuthResourceMapper;
import cn.like.backEnd.biz.service.AuthResourceService;
import cn.like.entity.AuthResource;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 资源(AuthResource)表服务实现类
 *
 * @author like
 * @since 2021-07-08 15:31:24
 */
@Service
public class AuthResourceServiceImpl extends ServiceImpl<AuthResourceMapper, AuthResource> implements AuthResourceService {

    /**
     * desc: 根据用户id 找到对应的role  <br>
     *
     * @param loginId 登录id
     * @return: {@link List<String> }
     * @author: like 980650920@qq.com
     * @date 2021-07-10 09:15:41
     */
    @Override
    public List<String> findResourceCodeByUserId(Object loginId) {
        return getBaseMapper().findResourceCodeByUserId(loginId);
    }


}